<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="off">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="__ROOT__/assets/css/admin.css" rel="stylesheet" type="text/css"/>
<link href="__ROOT__/assets/css/dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="__ROOT__/assets/js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="__ROOT__/assets/js/dialog.js"></script>
<style type="text/css">
.ui_dialog_wrap {
	visibility: hidden
}
.ui_title_icon, .ui_content, .ui_dialog_icon, .ui_btns span {
	display: inline-block;
*zoom:1;
*display:inline
}
.ui_dialog {
	text-align: left;
	position: absolute;
	top: 0
}
.ui_dialog table {
	border: 0;
	margin: 0;
	border-collapse: collapse
}
.ui_dialog td {
	padding: 0
}
.ui_title_icon, .ui_dialog_icon {
	vertical-align: middle;
	_font-size: 0
}
.ui_title_text {
	overflow: hidden;
	cursor: default
}
.ui_close {
	display: block;
	position: absolute;
	outline: none
}
.ui_content_wrap {
	text-align: center
}
.ui_content {
	margin: 10px;
	text-align: left
}
.ui_iframe .ui_content {
	margin: 0;
*padding:0;
	display: block;
	height: 100%;
	position: relative
}
.ui_iframe .ui_content iframe {
	border: none;
	overflow: auto
}
.ui_content_mask {
	visibility: hidden;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background: #FFF;
	filter: alpha(opacity=0);
	opacity: 0
}
.ui_bottom {
	position: relative
}
.ui_resize {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 1;
	cursor: nw-resize;
	_font-size: 0
}
.ui_btns {
	text-align: right;
	white-space: nowrap
}
.ui_btns span {
	margin: 5px 10px
}
.ui_btns button {
	cursor: pointer
}
* .ui_ie6_select_mask {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	filter: alpha(opacity=0)
}
.ui_loading .ui_content_wrap {
	position: relative;
	min-width: 9em;
	min-height: 3.438em
}
.ui_loading .ui_btns {
	display: none
}
.ui_loading_tip {
	visibility: hidden;
	width: 5em;
	height: 1.2em;
	text-align: center;
	line-height: 1.2em;
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -0.6em 0 0 -2.5em
}
.ui_loading .ui_loading_tip, .ui_loading .ui_content_mask {
	visibility: visible
}
.ui_loading .ui_content_mask {
	filter: alpha(opacity=100);
	opacity: 1
}
.ui_move .ui_title_text {
	cursor: move
}
.ui_page_move .ui_content_mask {
	visibility: visible
}
.ui_move_temp {
	visibility: hidden;
	position: absolute;
	cursor: move
}
.ui_move_temp div {
	height: 100%
}
html>body .ui_fixed .ui_move_temp {
	position: fixed
}
html>body .ui_fixed .ui_dialog {
	position: fixed
}
* .ui_ie6_fixed {
	background: url(*) fixed
}
* .ui_ie6_fixed body {
	height: 100%
}
* html .ui_fixed {
	width: 100%;
	height: 100%;
	position: absolute;
left:expression(documentElement.scrollLeft+documentElement.clientWidth-this.offsetWidth);
top:expression(documentElement.scrollTop+documentElement.clientHeight-this.offsetHeight)
}
* .ui_page_lock select, * .ui_page_lock .ui_ie6_select_mask {
	visibility: hidden
}
* .ui_page_lock .ui_content select {
	visibility: visible;
}
.ui_overlay {
	visibility: hidden;
	_display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	filter: alpha(opacity=0);
	opacity: 0;
	_overflow: hidden
}
.ui_lock .ui_overlay {
	visibility: visible;
	_display: block
}
.ui_overlay div {
	height: 100%
}
* html body {
	margin: 0
}
</style>
<title>后台管理</title>
</head>
<body scroll="no">
<div id="header">
  <div class="logo"><a href="__APP__" title="{$Think.lang.website_manage}"></a></div>
  <div class="fr">
    <div class="style_but"></div>
  </div>
  <div class="col-auto" style="overflow: visible">
    <div class="log white cut_line"> 欢迎您！<{$my_info.user_name}> <span>|</span> <a href="">[退出登陆]</a> | <a onclick="$('#rightMain').attr('src','{:u('public/panel')}')" href="javascript:">[管理首页]</a>| <a href="{$site_root}" target="_blank">[站点首页]</a> </div>
    <div class="log_right white cut_line"> <a href="http://www.pinphp.com" target="_blank">官方网站</a> <span>|</span> <a href="http://bbs.pinphp.com" target="_blank">支持论坛</a> <span>|</span> </div>
  </div>
  <ul class="nav white" id="top_menu">
    <volist name="top_menu" id="val" >
      <li id="_M{$val.id}" class="top_menu"> <a href="javascript:_M({$val.id},'')"  hidefocus="true" style="outline:none;">{$val.title}</a> </li>
    </volist>
  </ul>
</div>
<div id="content">
  <div class="left_menu fl">
    <div id="leftMain">
      <h3 class="f14"><span class="switchs cu on" title=""></span>商品管理</h3>
      <ul>
      
        <li id="_MP116" class="sub_menu"><a href="javascript:_MP(116,'admin.php?a=index&m=item');" hidefocus="true" style="outline:none;">商品列表</a></li>
        <li id="_MP117" class="sub_menu"><a href="javascript:_MP(117,'admin.php?a=mutiAdd&m=item');" hidefocus="true" style="outline:none;">批量添加</a></li>
      </ul>
      <h3 class="f14"><span class="switchs cu on" title=""></span>分类管理</h3>
      <ul>
        <li id="_MP118" class="sub_menu"><a href="javascript:_MP(118,'admin.php?&m=class');" hidefocus="true" style="outline:none;">分类列表</a></li>
        <li id="_MP119" class="sub_menu"><a href="javascript:_MP(119,'admin.php?a=add&m=class');" hidefocus="true" style="outline:none;">分类列表</a></li>
        <li id="_MP119" class="sub_menu"><a href="javascript:_MP(119,'admin.php?&m=admin');" hidefocus="true" style="outline:none;">分类列表</a></li>
      </ul>
    </div>
    <a href="javascript:;" id="openClose" style="outline-style: none; outline-color: invert; outline-width: medium;" hideFocus="hidefocus" class="open" title="{$lang.expand_or_contract}"></a> </div>
  <div class="right_main">
    <div class="crumbs">
      <div class="shortcut cu-span"> <a href="{:u('cache/index')}" target="right"> <span>清除缓存</span> </a> <a href="javascript:Refresh();"> <span>{$Think.lang.refresh_page}</span> </a> </div>
      <span id="current_pos"></span> </div>
    <div class="rmc">
      <div class="content" style="position:relative; overflow:hidden">
        <iframe name="right" id="rightMain" src="{:u('public/panel')}" frameborder="false" scrolling="auto" style="overflow-x:hidden;border:none;" width="100%" height="auto" allowtransparency="true"></iframe>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
function windowW(){
	if($(window).width()<980){
			$('#header').css('width',980+'px');
			$('#content').css('width',980+'px');
			$('body').attr('scroll','');
			$('body').css('overflow','');
	}
}
windowW();
$(window).resize(function(){
	if($(window).width()<980){
		windowW();
	}else{
		$('#header').css('width','auto');
		$('#content').css('width','auto');
		$('body').attr('scroll','no');
		$('body').css('overflow','hidden');

	}
});
window.onresize = function(){
	var heights = document.documentElement.clientHeight-110;
	document.getElementById('rightMain').height = heights;
	var openClose = $("#rightMain").height()+9;
	$('#center_frame').height(openClose+9);
	$("#openClose").height(openClose+30);
}
window.onresize();

$(function(){
	//默认载入左侧菜单
	$("#leftMain").load("{:u('public/menu', array('tag'=>'0'))}");
	$.get("{:u('index/current_pos', array('tag'=>'0'))}", function(data){
		$("#current_pos").html(data);
	});
	$('#top_menu li').first().addClass('on');
})

//左侧开关
$("#openClose").click(function(){
	if($(this).data('clicknum')==1) {
		$("html").removeClass("on");
		$(".left_menu").removeClass("left_menu_on");
		$(this).removeClass("close");
		$(this).data('clicknum', 0);
	} else {
		$(".left_menu").addClass("left_menu_on");
		$(this).addClass("close");
		$("html").addClass("on");
		$(this).data('clicknum', 1);
	}
	return false;
});

function _M(tag,targetUrl) {
	$.get("{:u('public/menu')}", {tag:tag}, function(data){
		$("#leftMain").html(data);
	});

	//$("#rightMain").attr('src', targetUrl);
	$('.top_menu').removeClass("on");
	$('#_M'+tag).addClass("on");

	$.get("{:u('index/current_pos')}", {tag:tag}, function(data){
		$("#current_pos").html(data);
	});

	//显示左侧菜单，当点击顶部时，展开左侧
	$(".left_menu").removeClass("left_menu_on");
	$("#openClose").removeClass("close");
	$("html").removeClass("on");
	$("#openClose").data('clicknum', 0);
	$("#current_pos").data('clicknum', 1);
}

function _MP(menuid,targetUrl) {
	$("#rightMain").attr('src', targetUrl);
	$('.sub_menu').removeClass("on fb blue");
	$('#_MP'+menuid).addClass("on fb blue");
	$("#current_pos").data('clicknum', 1);
	$.get("{:u('index/current_pos')}", {menuid:menuid}, function(data){
		$("#current_pos").html(data);
	});
}

function Refresh() {
	var src = $("#rightMain").attr('src');
	$("#rightMain").attr('src',src);
}
</script>
</body>
</html>
